﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CoverFlowDLL
{
    public class Location
    {
        #region Champs

        private string _ville = "Inconnu";
        private string _pays = "Inconnu";
        private string _rue = "Inconnu";
        private string _codePostal = "Inconnu";
        private float _latitude = 0;
        private float _longitude = 0;

        #endregion

        #region Propriétés

        public string ville
        {
            get { return _ville; }
            set { _ville = value; }
        }

        public string pays
        {
            get { return _pays; }
            set { _pays = value; }
        }

        public string rue
        {
            get { return _rue; }
            set { _rue = value; }
        }

        public string codePostal
        {
            get { return _codePostal; }
            set { _codePostal = value; }
        }

        public float latitude
        {
            get { return _latitude; }
            set { _latitude = value; }
        }

        public float longitude
        {
            get { return _longitude; }
            set { _longitude = value; }
        }

        #endregion

        #region Constructeurs

        public Location()
        {
        }

        public Location(string ville, string pays, string rue, string codePostal, float latitude, float longitude)
        {
            this.ville = ville;
            this.pays = pays;
            this.rue = rue;
            this.codePostal = codePostal;
            this.longitude = longitude;
            this.latitude = latitude;
        }

        #endregion
            
    }
}
